﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Remoting.Messaging;


namespace TypedROBIN.Imaging
{
    public class EventWrapper : MarshalByRefObject
    {
        public event CompleteEventHandler LocalCompleteEvent;
        public event ErrorEventHandler LocalErrorEvent;
        public event StatusEventHandler LocalStatusEvent;

        [OneWay]
        public void LocallyCompleteEventHandled(object sender, IECaptCompleteEventArgs e)
        {
            LocalCompleteEvent(sender, e);
        }

        [OneWay]
        public void LocallyErrorEventHandled(object sender, IECaptErrorEventArgs e)
        {
            LocalErrorEvent(sender, e);
        }

        [OneWay]
        public void LocallyStatusEventHandled(object sender, IECaptStatusEventArgs e)
        {
            LocalStatusEvent(sender, e);
        }

        public override object InitializeLifetimeService()
        {
            return null;
        }
    }

}
